package com.itheima.service.mongo;

import com.itheima.domain.db.PageBeanVo;
import com.itheima.domain.mongo.Comment;
import org.bson.types.ObjectId;

public interface CommentService {

    // 保存comment
    Integer saveComment(Comment comment);

    // 删除comment
    Integer removeComment(Long userId, ObjectId publishId, Integer commentType);

    PageBeanVo findCommentByPage(ObjectId publishId, Integer commentType, Integer pageNum, Integer pageSize);
}